package com.kmt.plaza.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "user_address")
public class UserAddress {
    /**
     * 地址主键id
     */
    @Id
    @Column(name = "address_id")
    private Integer addressId;

    /**
     * 用户ID
     */
    @Column(name = "user_id")
    private String userId;

    /**
     * 收件人姓名
     */
    @Column(name = "recipient_name")
    private String recipientName;

    /**
     * 收件人手机号
     */
    @Column(name = "recipient_phone")
    private String recipientPhone;

    /**
     * 省份
     */
    @Column(name = "select_address")
    private String selectAddress;

    /**
     * 详细地址
     */
    @Column(name = "full_address")
    private String fullAddress;

    /**
     * 邮编
     */
    @Column(name = "zip_code")
    private String zipCode;

    /**
     * 状态,1正常，0无效
     */
    private Integer status;

    /**
     * 是否默认地址 1是 1:是  0:否
     */
    @Column(name = "default_address")
    private Integer defaultAddress;

    /**
     * 创建时间
     */
    @Column(name = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @Column(name = "update_time")
    private Date updateTime;
}